Learn R Programming

OpenRepGrid (version 0.1.14)

[,repgrid-method: Extract parts of the repgrid object.

Description

Methods for "[", i.e., subsetting of repgrid objects.

Usage

# S4 method for repgrid
[(x, i, j, ..., drop = TRUE)

Arguments

x

A repgrid object.

i, j

Row and column indices.

...

Not evaluated.

drop

Not used.

Examples

Run this code

   x <- randomGrid()
   x[1:4, ] 
   x[ , 1:3] 
   x[1:4,1:3] 
   x[1,1]

Run the code above in your browser using DataLab